package org.example.config;

import dev.langchain4j.model.embedding.EmbeddingModel;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.store.embedding.EmbeddingStore;
import org.springframework.beans.factory.annotation.Autowired;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

//@AiService(
//        wiringMode = EXPLICIT,
//        chatModel = "qwenChatModel",
//        chatMemoryProvider = "chatMemoryProvider"
//)

@AiService(
        wiringMode = EXPLICIT,
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "appointmentTools",
        contentRetriever = "contentRetrieverXiaozhiPincone")
public interface XiaozhiAgent {


    @SystemMessage(fromResource = "xiaozhi.txt")
    Flux<String> chat5(
            @MemoryId int memoryId,
            @UserMessage String userMessage
    );

}
